import request from '@/utils/request'

// 查询(教育-校区)班级课程列表
export function listTimetable(data) {
  return request({
    url: '/school/timetable/list',
    method: 'post',
    data: data
  })
}

// 查询(教育-校区)班级课程详细
export function getTimetable(id) {
  return request({
    url: '/school/timetable/' + id,
    method: 'get'
  })
}

// 新增(教育-校区)班级课程
export function addTimetable(data) {
  return request({
    url: '/school/timetable/add',
    method: 'post',
    data: data
  })
}

// 修改(教育-校区)班级课程
export function updateTimetable(data) {
  return request({
    url: '/school/timetable/edit',
    method: 'post',
    data: data
  })
}

// 删除(教育-校区)班级课程
export function delTimetable(id) {
  return request({
    url: '/school/timetable/remove/' + id,
    method: 'post'
  })
}

export function buildTimetable(data) {
  return request({
    url: '/school/timetable/buildTimetable',
    method: 'post',
    data: data
  })
}
